<!DOCTYPE html>
<html lang="zh">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="robots" content="noindex, nofollow">

    <title>打卡界面</title>
    <link href="/css/login.css" rel="stylesheet"/>
    <link href="https://fonts.googleapis.com/css?family=Muli" rel="stylesheet"/>
</head>

<body>
<div class="login-content" style="background-image: url(/img/background.svg);">
    <div class="box">
        <div>
            <img style="width: 20%" class="logo" src="/css-logo.png" alt="Alfresco">
        </div>
        <div><span><a th:href="@{/logout}">退出登录</a></span></div>
        <div class="box-container">
            <div>
                <p class="application-name" style="margin-left: 97px" ><span style="color: white; ">11</span>每日健康报表</p>
            </div>
            <div style="color:red;" th:text="${tem == null ? '今日尚未打卡！' : '今日已打卡!'}"></div>
            <div style="color:red;" th:if="${count.equals('false')}">此帐号已锁定</div>
            <div>
                <form id="kc-form-login" class="form" action="/usersubmit" method="post">
<!--                    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>-->

<!--                    <label for="username"></label><input id="username" class="login-field"  type="text"-->
<!--                                                         name="username" tabindex="1" th:value="${userBean.getUserName()}"-->
<!--                                                         disabled="disabled">-->
<!--                    <label for="tem"></label><input id="tem" class="login-field" placeholder="输入体温"-->
<!--                                                         type="text" name="tem" tabindex="2">-->
                    <div>
                        <label class="visibility" id="v"><img id="v5" src="/img/我的.png" alt="eye"></label>
                    </div>
                    <label for="username"></label><input id="username" class="login-field"  type="text"
                                                         name="username" th:value="${userBean.getUserName()}" tabindex="1" readonly="readonly">
                    <div>
                        <label class="visibility" id="v1"><img id="v6" src="/img/身份.png" alt="eye"></label>
                    </div>
                    <label for="UserId"></label><input id="UserId" class="login-field" th:value="${userBean.getUserId()}"
                                                         type="text" name="UserId" tabindex="2" readonly="readonly">
                    <div>
                        <label class="visibility" id="v2"><img id="v7" src="/img/温度.png" alt="eye"></label>
                    </div>
                    <label for="tem"></label><input id="tem" class="login-field" placeholder="输入体温"
                                                         type="text" name="tem" tabindex="3" required="required" th:if="${tem!=null}" th:value="${tem}">
                    <label for="tem"></label><input id="tem" class="login-field" placeholder="输入体温"
                                                    type="text" name="tem" tabindex="3" required="required" th:value="${tem}" th:if="${tem==null}" >
                    <div>
                        <label class="visibility" id="v3"><img id="v8" src="/img/记录.png" alt="eye"></label>
                    </div>
                    <label for="status"></label><input id="status" class="login-field" placeholder="是否异常"
                                                         type="text" name="status" tabindex="4" required="required" th:if="${status!=null}" th:value="${status}" >
                    <label for="status"></label><input id="status" class="login-field" placeholder="是否异常"
                                                       type="text" name="status" tabindex="4" required="required" th:value="${status}" th:if="${status==null}">
                    <div>
                        <label class="visibility" id="v4"><img id="v9" src="/img/日历.png" alt="eye"></label>
                    </div>
                    <label for="date"></label><input id="date" class="login-field" placeholder="日期"
                                                         type="text" name="date" tabindex="5" th:value="${nyr}" readonly="readonly">
                    <input class="submit" type="submit" value="提交" tabindex="6" th:if="${tem==null } and ${!count.equals('false')} "  >
                </form>
            </div>
        </div>
    </div>
</div>
<script>

</script>
</body>
</html>
